﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Imagenator.Forms
{
	partial class ImageForm : ArgusLib.Controls.BaseForm
	{
		public ImageForm()
		{
			InitializeComponent();
			this.DoubleBuffered = true;
			this.HideOnUserClose = true;
			this.StartPosition = FormStartPosition.Manual;
		}

		protected override void OnBackgroundImageChanged(EventArgs e)
		{
			if (this.InvokeRequired)
				this.Invoke(new ArgusLib.Action(() => { this.ClientSize = this.BackgroundImage.Size; }));
			else
				this.ClientSize = this.BackgroundImage.Size;
			base.OnBackgroundImageChanged(e);
		}
	}
}
